home *** CD-ROM | disk | FTP | other *** search
Text File | 1999-11-02 | 4.1 KB | 113 lines | [TEXT/ALFA] |
- # You should avoid calling any of these procs:
- # They are slower, and may be removed at some point in the future.
- #
- # Some of these are currently called from Alpha's main menus. This
- # will be changed in the future, so that this entire file can vanish.
-
- # just wrappers around other procs
-
- proc pushMark {} {pushPosition}
- proc popMark {} {popPosition}
- proc pushPosition {args} {uplevel placeBookmark $args}
- proc popPosition {args} {uplevel returnToBookmark $args}
- proc absolutePath {filename} {file::absolutePath $filename}
- proc openFileQuietly {filename} {
- edit -c -w $filename
- }
- proc searchInFile {filename searchString {indices 0}} {
- file::searchFor $filename $searchString $indices
- }
-
- proc readFile {fileName} {file::readAll $fileName}
- proc writeFile {filename {text {}} {overwrite 0}} {
- file::writeAll $filename $text $overwrite
- }
- proc gotoFileLine {fname line {mesg {}}} {
- file::gotoLine $fname $line $mesg
- }
-
- proc buildSubMenu {args} {
- eval menu::buildHierarchy $args
- }
-
- proc listSubfolders {folder {depth 3}} {
- file::hierarchy $folder $depth
- }
-
- proc getIncludeFiles {} { optClickTB_List }
- proc editIncludeFile {item} { optClickTB_Pick $item}
- proc tryElseDump {name script} {
- try::level \#0 $script -reporting log -while $name
- }
- proc text::genericIndent {} { ::indentLine }
-
- proc revertTheseFiles {flist} {eval file::revertThese $flist}
-
- proc file::commentTextBlock {args} { eval comment::TextBlock $args }
- proc commentLine {args} { uplevel 1 comment::Line $args }
- proc uncommentLine {args} { uplevel 1 comment::undoLine $args }
- proc commentBox {args} { uplevel 1 comment::Box $args }
- proc uncommentBox {args} { uplevel 1 comment::undoBox $args }
- proc commentCharacters {args} { uplevel 1 comment::Characters $args }
- proc commentGetRegion {args} { uplevel 1 comment::GetRegion $args }
- proc commentSameStart {args} { uplevel 1 comment::SameStart $args }
- proc commentTextBlock {args} { uplevel 1 comment::TextBlock $args }
- proc commentGetFillLines {args} { uplevel 1 comment::GetFillLines $args }
- proc commentParagraph {args} { uplevel 1 comment::Paragraph $args }
- proc uncommentParagraph {args} { uplevel 1 comment::undoParagraph $args }
- proc fillParagraph {args} {uplevel 1 paragraph::fill $args}
- proc fillOneParagraph {args} {uplevel 1 paragraph::fillOne $args}
- proc paraStart {args} {uplevel 1 paragraph::start $args}
- proc paraFinish {args} {uplevel 1 paragraph::finish $args}
- proc sentenceParagraph {args} {uplevel 1 paragraph::sentence $args}
- proc selectParagraph {args} {uplevel 1 paragraph::select $args}
- proc addArrDef {args} { uplevel 1 prefs::addArrayElement $args }
- proc removeArrDef {args} { uplevel 1 prefs::removeArrayElement $args }
- proc addDef {args} {uplevel 1 prefs::add $args}
- proc removeDef {args} {uplevel 1 prefs::remove $args}
- proc readDefs {args} {uplevel 1 prefs::_read $args}
- proc writeDefs {args} {uplevel 1 prefs::_write $args}
- proc addArr {args} { uplevel 1 prefs::addArray $args }
- proc removeArr {args} { uplevel 1 prefs::removeArray $args }
- proc saveModifiedVars {args} { uplevel 1 prefs::saveModified $args }
- proc alpha::readUserDefs {} {uplevel 1 prefs::readAll}
- proc alpha::readUserPrefs {} {uplevel 1 prefs::tclRead}
- proc addUserLine {args} { uplevel 1 prefs::tclAddLine $args}
- namespace eval mode {}
- proc mode::addUserLine {args} {uplevel 1 prefs::tclAddModeLine $args}
- proc getSavedSettings {} {prefs::listAllSaved}
- proc removeSavedSetting {} {prefs::removeSavedSetting}
- proc viewSavedSetting {} {prefs::viewSavedSetting}
-
-
- proc upBrowse {} { browse::Up }
- proc downBrowse {} { browse::Down }
- proc gotoMatch {} { browse::Goto }
-
- ########################################
- # #
- # A few random lisp'ish functions. #
- # #
- ########################################
-
- proc car {l} {lindex $l 0}
- proc cadr {l} {lindex $l 1}
- proc caddr {l} {lindex $l 2}
- proc cadddr {l} {lindex $l 3}
- proc caddddr {l} {lindex $l 4}
- proc cdr {l} {lrange $l 1 end}
- proc cddr {l} {lrange $l 2 end}
-
- proc mapcar args {return [eval map $args]}
-
- proc map {func l} {
- set out {}
- foreach el $l {
- lappend out [eval $func [list $el]]
- }
- return $out
- }
-
- proc cons {e l} {concat [list $e] $l}
-
-